<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm *//*
**Team :
**Coding by 曾钰媛 1511240 170706
**This is the signup layout 
*/



use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;

$this->title = 'SignUp';
$this->params['breadcrumbs'][] = $this->title;
?>

<body>
	<div class="main">
				 <!-----start-main---->
				 <h1>Sign up with</h1> 
				 <br/>
				  <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>

                <?= $form->field($model, 'username',[
				     'inputOptions'=>[
					     'placeholder' => 'Username',
				      ],
					  'inputTemplate'=>
					   '<div class="lable-2">
					   <type="text" class="text" placeholder="UserName">{input}
					   </div>',]
				     )
					 ->label(false) ?>
			    <div class="clear"> </div>
				 <br/>

                <?= $form->field($model, 'email',[
				     'inputOptions'=>[
					     'placeholder' => 'Email',
				      ],
					  'inputTemplate'=>
					   '<div class="lable-2">
					   <type="text" class="text" placeholder="your@email.com " >{input}
					   </div>',]
				     )
					 ->label(false)
				 ?>
				 <div class="clear"> </div>
				  <br/>

                <?= $form->field($model, 'password',[
				     'inputOptions'=>[
					     'placeholder' => 'password',
				      ],
					  'inputTemplate'=>
					   '<div class="lable-2">
					    <type="password" class="text" placeholder="Password " >{input}
					   </div>',]
				     )
					 ->label(false)->passwordInput() ?>
				<div class="clear"> </div>
				 <br/>
				 
				<?= $form->field($model, 'rePassword',[
				     'inputOptions'=>[
					     'placeholder' => 'rePassword',
				      ],
					  'inputTemplate'=>
					   '<div class="lable-2">
					    <type="password" class="text" placeholder="RePassword ">{input}
					   </div>',]
				     )
					 ->label(false)->passwordInput() ?>
			    <br/>

				<div class="clear"> </div>
					<div class="submit">
						<input type="submit"  value="Create account" >
					</div>
					<div class="clear"> </div>
					
                <?php ActiveForm::end(); ?>
		<!-----//end-main---->
		</div>
				
		<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
	 
</body>